<?php
class Orders extends MY_Controller{
	function __construct(){
		parent::__construct();
		$this->loadfields();
	}
	
	
     function saveorder($data = array()){
     	     $this->load->model('admin/Orders_model' , 'mOrders' ,TRUE);
     	     $this->load->model('admin/Item_section_model' , 'mItemSection' ,TRUE);
		
     	     
    		 foreach($data['ITEMSECTIONLIST'] as $itemsection ){
     			$selectedsectioncolor = $this->input->post("item_section_color_" . $itemsection['id'], TRUE);
     			$draftcolor[$itemsection['id']] =  $this->mItemColor->find($selectedsectioncolor);
     		
    		   echo  $draftcolor[$itemsection['id']]['value']."---------<br>";
    		 
    		 }
     }
	
    
}